﻿@model Tesis2.Models.Emergencia

@{
    ViewBag.Title = "Edit";
}

<h2>Editar Emergencia</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Emergencia</legend>

        @Html.HiddenFor(model => model.EmergenciaID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaInicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaInicio)
            @Html.ValidationMessageFor(model => model.FechaInicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Poblacion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Poblacion)
            @Html.ValidationMessageFor(model => model.Poblacion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Intensidad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Intensidad)
            @Html.ValidationMessageFor(model => model.Intensidad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstadoEmergenciaID, "Estado")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EstadoEmergenciaID", String.Empty)
            @Html.ValidationMessageFor(model => model.EstadoEmergenciaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoEmergenciaID, "Tipo")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TipoEmergenciaID", String.Empty)
            @Html.ValidationMessageFor(model => model.TipoEmergenciaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DireccionEmergenciaID, "Dirección")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DireccionEmergenciaID", String.Empty)
            @Html.ValidationMessageFor(model => model.DireccionEmergenciaID)
        </div>

        <p>
            <button type="submit" class="boton" id="Btn_enviar" ><img src="~/Images/aceptar.png"></button>
            <a href='@Url.Action("Index", "Emergencia")' class="boton">
                <img src='@Url.Content("~/Images/cancelar.png")' />
            </a>
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
